<?php

namespace Database\Seeders;

use Illuminate\Database\Seeder;
use Illuminate\Support\Facades\DB;

class ImageSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        $data = [
            [
                'id' => 1,
                'name' => '首页',
                'url_1' => 'http://cdn.henrywong01.top/tabbar/home_on.png',
                'url_2' => 'http://cdn.henrywong01.top/tabbar/home.png',
                'page_path' => '/pages/index/index',
                'type' => 1
            ],
            [
                'id' => 2,
                'name' => '预约',
                'url_1' => 'http://cdn.henrywong01.top/tabbar/appointment_on.png',
                'url_2' => 'http://cdn.henrywong01.top/tabbar/appointment.png',
                'page_path' => '/pages/book/index',
                'type' => 1
            ],
            [
                'id' => 3,
                'name' => '服务',
                'url_1' => 'http://cdn.henrywong01.top/tabbar/list_on.png',
                'url_2' => 'http://cdn.henrywong01.top/tabbar/list.png',
                'page_path' => '/pages/list/index',
                'type' => 1
            ],
            [
                'id' => 4,
                'name' => '门店',
                'url_1' => 'http://cdn.henrywong01.top/tabbar/store_on.png',
                'url_2' => 'http://cdn.henrywong01.top/tabbar/store.png',
                'page_path' => '/pages/store/index',
                'type' => 1
            ],
            [
                'id' => 5,
                'name' => '个人中心',
                'url_1' => 'http://cdn.henrywong01.top/tabbar/center_on.png',
                'url_2' => 'http://cdn.henrywong01.top/tabbar/center.png',
                'page_path' => '/pages/center/index',
                'type' => 1
            ],
            [
                'id' => 6,
                'name' => 'Banner',
                'url_1' => 'http://cdn.henrywong01.top/%E9%A6%96%E9%A1%B5Banner.jpeg',
                'url_2' => '',
                'page_path' => '/pages/gift/index',
                'type' => 2
            ],
            [
                'id' => 7,
                'name' => '门店页头图',
                'url_1' => 'http://cdn.henrywong01.top/store/store.jpeg',
                'url_2' => '',
                'page_path' => '',
                'type' => 3
            ]
        ];

        DB::table('images')->insert($data);
    }
}
